<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // ES6数组和字符串的拓展方法

    // 数组  find findIndex findLast findLastIndex indexOf fill flat flatMap

    // 字符串  repeat  includes startsWith endsWith  padStart padEnd

    //  扩展运算符 (...)     Rest(合并剩余参数)

    //  []

    // var { a, b, c } = { a: 1, b: 2, c: 3 };
    // var { a:a, b:b, c:c,d = 0} = { a: 1, b: 2, c: 3 };
    // var { a:A, b:B, c:C } = { a: 1, b: 2, c: 3 };


    // cookie
    // 标识用户身份  长时间存储数据
    // 特征: 时效性  跨页面访问

    var date = new Date();
    date.setSeconds(date.getSeconds + 3600);
    document.cookie = "user=a123123; expires=" + date.toUTCString() + ";path=/";









</script>

</html>